--荒野依旧
local huangyeyijiu = fk.CreateSkill {
    name = "mcdh_huangyeyijiu",
    tags = {Skill.Compulsory}
}

local U = require "packages/utility/utility"
local lib = require "packages/mcdh/lib"

huangyeyijiu:addEffect(fk.PindianCardsDisplayed,{
    can_trigger =function(self, event, target, player, data)
        if not player:hasSkill(self) then return  false end
        if data.from == player or table.contains(data.tos, player) then
            if data.fromCard.trueName == "slash" then
                return true
            end
            for _, result in pairs(data.results) do
                if result.toCard.trueName == "slash" then
                    return true
                end
            end
        end
    end,
    on_use = function(self, event, target, player, data)
        if data.fromCard.trueName == "slash" then
            data.fromCard.number = 13
        end
        for _, result in pairs(data.results) do
            if result.toCard.trueName == "slash" then
                result.toCard.number = 13
            end
        end
    end
})

Fk:loadTranslationTable {
    ["mcdh_huangyeyijiu"] = "荒野依旧",
    [":mcdh_huangyeyijiu"] = "锁定技。你参与的拼点中，当拼点的牌亮出后，若此牌牌名为【杀】，则点数视为K。"
}

return huangyeyijiu